﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using SimpleNow.Core.Ntiers;

namespace SimpleNow.Core.Authentication.Test
{


    [TestClass]
    public class AuthentificationManagerTest
    {
        /// <summary>
        /// Test the login. The user is found and the login information is true.
        /// </summary>
        [TestMethod]
        public void LoginFindUserAndMatchInformationTest()
        {
            AuthentificationManager myLoginUserManager = new AuthentificationManager();
            User myLoginUser = new User();
            myLoginUser.Name = "allo";
            myLoginUser.PasswordClear = "astoum";
            myLoginUserManager.Login(myLoginUser);


        }

        /// <summary>
        /// 
        /// </summary>
        [TestMethod]
        public void AddUserTest()
        {
            //TODO complete comment and review test
            AuthentificationManager myLoginUserManager = new AuthentificationManager();
            User myLoginUser = new User();
            myLoginUser.Name = "allo";
            myLoginUser.PasswordClear = "astoum";
            myLoginUserManager.AddUser(myLoginUser);

        }
    }
}
